import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`verification-code` + url, ...arg)
/**
 * 验证码
 *
 */
export default {
	// 获取分页
	page(data) {
		return request('/page', data, 'post')
	},
	// 获取列表
	configList(data) {
		return request('/list', data, 'post')
	},
	// 发送短信
	send(data) {
		return request('/send', data, 'post')
	},
	// 删除
	deleteBatch(data) {
		return request('/delete-batch', data, 'delete')
	}
}
